package com.ej.demo.action;

import com.ej.demo.page.HomePage;

public class HomePageActions {

	HomePage homepage;

	public HomePageActions() {
		homepage = new HomePage();
	}

	public HomePageActions enterJourneyDetails(String Orgin,
			String destination, String onwardDate, String onwardMonth,
			String returnDate, String returnMonth) {
		homepage.enterJourneyDetails(Orgin, destination, onwardDate,
				onwardMonth, returnDate, returnMonth);
		return this;
	}

	public HomePageActions enterPassengerDetails(String numberOfAdults,
			String numberOfKids, String numberOfInfants) {
		homepage.enterPassengerDetails(numberOfAdults, numberOfKids,
				numberOfInfants);
		return this;
	}

	public FlightListingPageAction proceedToFlightListingPage() {
		homepage.navigateToFlightListingPage();
		return new FlightListingPageAction();
	}
}
